<?php
class Content 
{
	private $x;
	private $y;
	private $width;
	private $height;
	private $html;

	public function __construct($width='0px', $height='0px', $x='0px', $y='0px', $html='', $css='')
	{
		$this->x=$x;
		$this->y=$y;
		$this->width=$width;
		$this->height=$height;
		$this->html=$html;
		$this->css=$css;
	}
	
	public function getX()
	{
		return $this->x;
	}

	public function getY()
	{
		return $this->y;
	}
	
	public function getWidth()
	{
		return $this->width;
	}

	public function getHeight()
	{	
		return $this->height;
	}

	public function getCode()
	{
		return '<div style="position: absolute; top: '.$this->x.'; left: '.$this->y.'; 
			width: '.$this->width.'; height: '.$this->height.';'.$this->css.'">'.$this->html.'</div>';
	}	
}	
